package com.woniu.goodsservice.controller;

import com.woniu.goodsservice.entity.Goodsdetail;
import com.woniu.goodsservice.service.GoodsdetailService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("goodsdetail")
public class GoodsdetailController {
    @Resource
    private GoodsdetailService goodsdetailService;

    @GetMapping("selectOne")
    public Goodsdetail selectOne(Integer id) {
        return goodsdetailService.queryById(id);
    }

}